package patrol.mobile.com.mobilepatrol.activity.security.emergency;

import android.view.View;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.listener.OnRecyclerViewItemClickListener;

import java.util.ArrayList;
import java.util.List;

import patrol.mobile.com.mobilepatrol.activity.CommonListActivity;
import patrol.mobile.com.mobilepatrol.activity.security.ConsTitles;
import patrol.mobile.com.mobilepatrol.activity.security.adapter.EmergencySaveThingsDeal1ListAdapter;
import patrol.mobile.com.mobilepatrol.activity.security.adapter.EmergencySaveThingsDeal3ListAdapter;

/**
 * Created by K on 2018/9/14.
 */
public class EmergencySaveThingsDeal3Activity extends CommonListActivity {

    @Override
    public void initView() {
        super.initView();
    }


    @Override
    public void initTitle() {
        super.initTitle();
    }

    @Override
    protected BaseQuickAdapter initAdapter() {
        return new EmergencySaveThingsDeal3ListAdapter(this);
    }

    @Override
    protected String initTitleName() {
        return ConsTitles.EMERGENCY_SAVE_THINGS_DEAL_3;
    }

    @Override
    public void configAdapter() {
        super.configAdapter();
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            list.add("123");
        }
        mAdapter.updateItems(list);
    }

    @Override
    public void setListener() {
        super.setListener();
        mAdapter.setOnItemClickListener(new OnRecyclerViewItemClickListener() {
            @Override
            public void onItemClick(View view, int position) {
                //startActivity(EmergencySaveThingsDeal2Activity.class);
            }
        });


    }
}
